import request from '@/utils/request'
/**
 * 商品分类列表-带分页
 */
export function classList(params) {
  return request({
    url: '/server/goodsType/list',
    method: 'get',
    data: params
  })
}
/**
 * 商品分类列表-不带分页
 */
export function classListSelect(params) {
  return request({
    url: '/server/goodsType/select',
    method: 'get',
    data: params
  })
}
/**
 * 商品分类-删除类别
 */
export function classDelete(params) {
  return request({
    url: '/server/goodsType/delete',
    method: 'post',
    data: params
  })
}
/**
 * 商品分类-保存分类
 */
export function classSave(params) {
  return request({
    url: '/server/goodsType/save',
    method: 'post',
    data: params
  })
}
/**
 * 商品分类-保存分类
 */
export function classUpdata(params) {
  return request({
    url: '/server/goodsType/update',
    method: 'post',
    data: params
  })
}
/**
 * 商家商品-商家商品统计
 */
export function goodsTotalList(params) {
  return request({
    url: '/server/storeBusiness/businessWithGoods',
    method: 'get',
    data: params
  })
}
/**
 * 店内分类-新增分类
 */
export function goodsClassSave(params) {
  return request({
    url: '/server/goodsClassInstore/save',
    method: 'post',
    data: params
  })
}
/**
 * 店内分类-店内修改分类
 */
export function goodsClassUpdata(params) {
  return request({
    url: '/server/goodsClassInstore/update',
    method: 'post',
    data: params
  })
}
/**
 * 店内分类-店内修改分类
 */
export function goodsClassDelete(params) {
  return request({
    url: '/server/goodsClassInstore/delete',
    method: 'post',
    data: params
  })
}
/**
 * 店内分类-店内分类列表
 */
export function goodsClassSelect(params) {
  return request({
    url: '/server/goodsClassInstore/select',
    method: 'get',
    data: params
  })
}

/**
 * 商家商品-店内商品
 */
export function goodsBusList(params) {
  return request({
    url: '/server/goods/businessGoodsList',
    method: 'get',
    data: params
  })
}
/**
 * 商家商品-系统下所有的商品
 */
export function goodsAllList(params) {
  return request({
    url: '/server/goods/list',
    method: 'post',
    data: params
  })
}
/**
 * 商家商品-所有
 */
export function selectPropertyName(params) {
  return request({
    url: '/server/goodsproperty/selectPropertyName',
    method: 'get',
    data: params
  })
}
/**
 * 商家商品-添加规格
 */
export function savePropertyName(params) {
  return request({
    url: '/server/goodsproperty/savePropertyName',
    method: 'post',
    data: params
  })
}
/**
 * 商家商品-添加规格
 */
export function savePropertyValue(params) {
  return request({
    url: '/server/goodsproperty/savePropertyValue',
    method: 'post',
    data: params
  })
}
/**
 * 商家商品-添加商品
 */
export function goodsSave(params) {
  return request({
    url: '/server/goods/save',
    method: 'post',
    data: params
  })
}
/**
 * 商家商品-修改商品
 */
export function goodsUpdate(params) {
  return request({
    url: '/server/goods/update',
    method: 'post',
    data: params
  })
}

/**
 * 商家商品-商品详情
 */
export function goodsInfo(params) {
  return request({
    url: '/server/goods/info',
    method: 'get',
    data: params
  })
}
/**
 * 商家商品-设置商品状态
 */
export function setStatus(params) {
  return request({
    url: '/server/goods/setStatus',
    method: 'post',
    data: params
  })
}
/**
 * 商家商品-设置商品排序
 */
export function setSort(params) {
  return request({
    url: '/server/goods/dragSort',
    method: 'post',
    data: params
  })
}
